package com.base.service.COUPON.impl;

import com.base.mapper.couponmapper.CouponGoodsNewMapper;
import com.base.po.coupon_new.CouponGoodsNew;
import com.base.po.coupon_new.CouponGoodsNewExample;
import com.base.service.COUPON.CouponGoodsNewService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("CouponGoodsNewService")
public class CouponGoodsNewServiceImpl implements CouponGoodsNewService {
    @Autowired
    CouponGoodsNewMapper couponGoodsNewMapper;

    @Override
    public int countByExample(CouponGoodsNewExample example) {
        return couponGoodsNewMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CouponGoodsNewExample example) {
        return couponGoodsNewMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return couponGoodsNewMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CouponGoodsNew record) {
        return couponGoodsNewMapper.insert(record);
    }

    @Override
    public int insertSelective(CouponGoodsNew record) {
        return couponGoodsNewMapper.insertSelective(record);
    }

    @Override
    public List<CouponGoodsNew> selectByExampleWithBLOBs(CouponGoodsNewExample example) {
        return couponGoodsNewMapper.selectByExampleWithBLOBs(example);
    }

    @Override
    public List<CouponGoodsNew> selectByExample(CouponGoodsNewExample example) {
        return couponGoodsNewMapper.selectByExample(example);
    }

    @Override
    public CouponGoodsNew selectByPrimaryKey(Integer id) {
        return couponGoodsNewMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CouponGoodsNew record, CouponGoodsNewExample example) {
        return couponGoodsNewMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExampleWithBLOBs(CouponGoodsNew record, CouponGoodsNewExample example) {
        return couponGoodsNewMapper.updateByExampleWithBLOBs(record, example);
    }

    @Override
    public int updateByExample(CouponGoodsNew record, CouponGoodsNewExample example) {
        return couponGoodsNewMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(CouponGoodsNew record) {
        return couponGoodsNewMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(CouponGoodsNew record) {
        return couponGoodsNewMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(CouponGoodsNew record) {
        return couponGoodsNewMapper.updateByPrimaryKey(record);
    }

    @Override
    public CouponGoodsNew selectCouponGoodsNewByGoodsNo(String goods_no) {
        return couponGoodsNewMapper.selectCouponGoodsNewByGoodsNo(goods_no);
    }

    @Override
    public List<CouponGoodsNew> selectAllDetail(Page page, String parentId, String brandId) {
        return couponGoodsNewMapper.selectAllDetail( page,  parentId,  brandId);
    }
}
